package com.mingzhi.order.mapper;

import com.mingzhi.order.model.OrderInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface OrderMapper {
    /**
     * 根据订单id获取数据详情
     *
     * @param orderId 订单id
     * @return 订单id对应的订单详情
     */
    @Select("select * from order_detail where id = #{id}")
    OrderInfo selectOrderById(@Param("id") Integer orderId);
}
